<template>
  <div class="sunzi">
    <h2> 孙子控件 {{stu.name}} {{stu.age}}</h2>
    <Dhk></Dhk>
  </div>
</template>

<script>
import {inject} from "vue";
import Dhk from "./Dhk.vue";
export default {
  name: "Sunzi",
  components: {Dhk},
  setup(){
    let stu=inject("stu")
    return{
      stu
    }
  }
}
</script>
<style scoped>
  .sunzi{
    background-color: antiquewhite;
    padding: 10px;
  }
</style>
